package com.dcy.znoa.common.util.wj.louxing;

import java.math.BigDecimal;

/**
 * Created by $ pengyu on 2018/6/29.
 */
public class WjTwoInput {

    int speed1;
    int speed2;
    int speed3;
    int speed4;

    int floor1;
    int floor2;
    int floor3;
    int floor4;

    int area1;
    int area2;
    int area3;
    int area4;

    BigDecimal pr;
    int la;
    BigDecimal bd;
    int plus;

    //以下的公式都只计算

    //公式1
    public  int getOne(WjTwoOutput wjTwoOutput){
        return  speed1 * wjTwoOutput.getX1() + speed2 * wjTwoOutput.getX2()
                + speed3 * wjTwoOutput.getX3() + speed4 * wjTwoOutput.getX4();
    }
    //公式2
    public  int getTwo(WjTwoOutput wjTwoOutput){
        return  area1 * floor1 * wjTwoOutput.getX1() + area2 * floor2 * wjTwoOutput.getX2()
                + area3 * floor3 * wjTwoOutput.getX3() + area4 * floor4 * wjTwoOutput.getX4();
    }
    //公式3
    public int getThree(WjTwoOutput wjTwoOutput){
        return  area1  * wjTwoOutput.getX1() + area2  * wjTwoOutput.getX2()
                + area3  * wjTwoOutput.getX3() + area4 * wjTwoOutput.getX4();
    }

    public WjTwoInput(int speed1, int speed2, int speed3, int speed4, int floor1, int floor2, int floor3, int floor4, int area1, int area2, int area3, int area4, BigDecimal pr, int la, BigDecimal bd, int plus) {
        this.speed1 = speed1;
        this.speed2 = speed2;
        this.speed3 = speed3;
        this.speed4 = speed4;
        this.floor1 = floor1;
        this.floor2 = floor2;
        this.floor3 = floor3;
        this.floor4 = floor4;
        this.area1 = area1;
        this.area2 = area2;
        this.area3 = area3;
        this.area4 = area4;
        this.pr = pr;
        this.la = la;
        this.bd = bd;
        this.plus = plus;
    }

    public int getSpeed1() {
        return speed1;
    }

    public void setSpeed1(int speed1) {
        this.speed1 = speed1;
    }

    public int getSpeed2() {
        return speed2;
    }

    public void setSpeed2(int speed2) {
        this.speed2 = speed2;
    }

    public int getSpeed3() {
        return speed3;
    }

    public void setSpeed3(int speed3) {
        this.speed3 = speed3;
    }

    public int getSpeed4() {
        return speed4;
    }

    public void setSpeed4(int speed4) {
        this.speed4 = speed4;
    }

    public int getFloor1() {
        return floor1;
    }

    public void setFloor1(int floor1) {
        this.floor1 = floor1;
    }

    public int getFloor2() {
        return floor2;
    }

    public void setFloor2(int floor2) {
        this.floor2 = floor2;
    }

    public int getFloor3() {
        return floor3;
    }

    public void setFloor3(int floor3) {
        this.floor3 = floor3;
    }

    public int getFloor4() {
        return floor4;
    }

    public void setFloor4(int floor4) {
        this.floor4 = floor4;
    }

    public int getArea1() {
        return area1;
    }

    public void setArea1(int area1) {
        this.area1 = area1;
    }

    public int getArea2() {
        return area2;
    }

    public void setArea2(int area2) {
        this.area2 = area2;
    }

    public int getArea3() {
        return area3;
    }

    public void setArea3(int area3) {
        this.area3 = area3;
    }

    public int getArea4() {
        return area4;
    }

    public void setArea4(int area4) {
        this.area4 = area4;
    }

    public BigDecimal getPr() {
        return pr;
    }

    public void setPr(BigDecimal pr) {
        this.pr = pr;
    }

    public int getLa() {
        return la;
    }

    public void setLa(int la) {
        this.la = la;
    }

    public BigDecimal getBd() {
        return bd;
    }

    public void setBd(BigDecimal bd) {
        this.bd = bd;
    }

    public int getPlus() {
        return plus;
    }

    public void setPlus(int plus) {
        this.plus = plus;
    }
}
